﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000C27 RID: 3111
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MuseumTakeCollectRewardCsReq : IMessage<MuseumTakeCollectRewardCsReq>, IMessage, IEquatable<MuseumTakeCollectRewardCsReq>, IDeepCloneable<MuseumTakeCollectRewardCsReq>, IBufferMessage
	{
		// Token: 0x17002734 RID: 10036
		// (get) Token: 0x06008B0E RID: 35598 RVA: 0x001720FC File Offset: 0x001702FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MuseumTakeCollectRewardCsReq> Parser
		{
			get
			{
				return MuseumTakeCollectRewardCsReq._parser;
			}
		}

		// Token: 0x17002735 RID: 10037
		// (get) Token: 0x06008B0F RID: 35599 RVA: 0x00172103 File Offset: 0x00170303
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MuseumTakeCollectRewardCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002736 RID: 10038
		// (get) Token: 0x06008B10 RID: 35600 RVA: 0x00172115 File Offset: 0x00170315
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MuseumTakeCollectRewardCsReq.Descriptor;
			}
		}

		// Token: 0x06008B11 RID: 35601 RVA: 0x0017211C File Offset: 0x0017031C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MuseumTakeCollectRewardCsReq()
		{
		}

		// Token: 0x06008B12 RID: 35602 RVA: 0x00172124 File Offset: 0x00170324
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MuseumTakeCollectRewardCsReq(MuseumTakeCollectRewardCsReq other) : this()
		{
			this.itemId_ = other.itemId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06008B13 RID: 35603 RVA: 0x00172149 File Offset: 0x00170349
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MuseumTakeCollectRewardCsReq Clone()
		{
			return new MuseumTakeCollectRewardCsReq(this);
		}

		// Token: 0x17002737 RID: 10039
		// (get) Token: 0x06008B14 RID: 35604 RVA: 0x00172151 File Offset: 0x00170351
		// (set) Token: 0x06008B15 RID: 35605 RVA: 0x00172159 File Offset: 0x00170359
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ItemId
		{
			get
			{
				return this.itemId_;
			}
			set
			{
				this.itemId_ = value;
			}
		}

		// Token: 0x06008B16 RID: 35606 RVA: 0x00172162 File Offset: 0x00170362
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MuseumTakeCollectRewardCsReq);
		}

		// Token: 0x06008B17 RID: 35607 RVA: 0x00172170 File Offset: 0x00170370
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MuseumTakeCollectRewardCsReq other)
		{
			return other != null && (other == this || (this.ItemId == other.ItemId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06008B18 RID: 35608 RVA: 0x001721A0 File Offset: 0x001703A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ItemId != 0U)
			{
				num ^= this.ItemId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008B19 RID: 35609 RVA: 0x001721DF File Offset: 0x001703DF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008B1A RID: 35610 RVA: 0x001721E7 File Offset: 0x001703E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06008B1B RID: 35611 RVA: 0x001721F0 File Offset: 0x001703F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ItemId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.ItemId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06008B1C RID: 35612 RVA: 0x00172224 File Offset: 0x00170424
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ItemId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ItemId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06008B1D RID: 35613 RVA: 0x00172262 File Offset: 0x00170462
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MuseumTakeCollectRewardCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ItemId != 0U)
			{
				this.ItemId = other.ItemId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06008B1E RID: 35614 RVA: 0x00172293 File Offset: 0x00170493
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06008B1F RID: 35615 RVA: 0x0017229C File Offset: 0x0017049C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.ItemId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003527 RID: 13607
		private static readonly MessageParser<MuseumTakeCollectRewardCsReq> _parser = new MessageParser<MuseumTakeCollectRewardCsReq>(() => new MuseumTakeCollectRewardCsReq());

		// Token: 0x04003528 RID: 13608
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003529 RID: 13609
		public const int ItemIdFieldNumber = 7;

		// Token: 0x0400352A RID: 13610
		private uint itemId_;
	}
}
